<?
	include("helpers.php");

	switch ($_GET["call"])
	{
  		case "getgames":
   			getGames();
   		break;
	}

	function getGames()
	{
		/*echo "<table>\n";
	  	echo "<tr class='titlerow'>\n";
	  	echo "<td>Game Number</td>\n";
	  	echo "<td>Game</td>\n";
	  	echo "<td>Status</td>\n";
	  	echo "<td>Total Seats</td>\n";
	  	echo "<td>Seats Available</td>\n";
	  	echo "</tr>\n";
	  	echo getGamesList();
	  	echo "</table>\n";*/ 
		if(isset($_GET["game"]))
			echo getGamesList($_GET["game"]);
		else
			echo "Error, no Game Specified";
	}
?>



